Skip to content

📦 [Consolidated] PR #49~#54 の統合・競合解消およびレビュー指摘対応#56

Merged
is0692vs merged 14 commits intomainfrom
fix/consolidated-prs-latest
Mar 14, 2026
Merged

📦 [Consolidated] PR #49~#54 の統合・競合解消およびレビュー指摘対応#56
is0692vs merged 14 commits intomainfrom
fix/consolidated-prs-latest

Conversation

@is0692vs
Copy link
Contributor

@is0692vs is0692vs commented Mar 6, 2026

概要

このPRは、複数の依存関係が重複したり機能連携がある以下6個のPRを一つのブランチにて統合(マージ)し、さらに各位からいただいたレビューコメント等の指摘事項に対応するためのものです。

統合元のPR(これらは本作業に伴いクローズ済みです):

対応した修正点 (レビュー指摘への対応)

  1. src/app/api/dashboard/summary/route.test.ts (PR 🧪 [testing improvement] Add error handling test for /api/dashboard/summary #53 指摘対応)

    • as any キャストを可能な限り排除するため、セッションのモックに next-auth からインポートした Session 型を適用し、テストの型安全性を向上させました。
  2. src/lib/logger.ts (PR 🧹 [コード健全性向上] ログ出力の共通化 #52 指摘対応)

    • ロガー関数の最初の引数が string に限定されていたものを unknown に変更し、console と同様に任意の型のデータを柔軟に出力できるよう改善しました。
  3. src/components/ContributionGraph.tsx (PR 🧹 [Code Health] Refactor ContributionGraph Calendar Logic #49 指摘対応)

    • カレンダーデータ処理のヘルパー関数抽出に際し、モジュール内で重複していた定数定義(cellSize, cellGap, step, dayLabelWidthなど)をモジュールレベルの定数に統合し、コードの重複を排除しました。
  4. カラー計算処理の競合解消 (PR 🧹 [Code Health] Simplify adjustAccentColor function in color.ts #50, 🧹 [code health improvement] refactor adjustAccentColor to improve readability #51 関連)

    • ほぼ同時に作成・機能改修された adjustAccentColor (src/lib/color.ts) のファイル競合を解消し、修正を取り込んで一つの一貫性のあるロジックとして整理し直しました。

確認事項

  • 本ブランチにてローカルでの npm run testnpm run build は成功することを確認済みです。

google-labs-jules bot and others added 12 commits March 6, 2026 06:35
Extracted the complex data grouping and processing logic for the contribution calendar
into a separate `processCalendarData` helper function in `ContributionGraph.tsx`.
This improves the readability and maintainability of the component's rendering block.

Co-authored-by: is0692vs <135803462+is0692vs@users.noreply.github.com>
Co-authored-by: is0692vs <135803462+is0692vs@users.noreply.github.com>
Co-authored-by: is0692vs <135803462+is0692vs@users.noreply.github.com>
Introduced a centralized logger in src/lib/logger.ts and replaced all
instances of console.error and console.warn with logger methods to
improve maintainability.

Co-authored-by: is0692vs <135803462+is0692vs@users.noreply.github.com>
- src/app/api/dashboard/summary/route.test.ts を作成
- 認証エラー (401)、正常系 (200)、および各種データ取得エラー (500) のテストケースを実装
- next-auth および GitHub API 関連のライブラリ関数をモックして検証するように構成

Co-authored-by: is0692vs <135803462+is0692vs@users.noreply.github.com>
🎯 What: Extracted duplicated legend code from ActivityHeatmap and ContributionGraph into a new HeatmapLegend component.
💡 Why: Improves maintainability and reduces code duplication.
✅ Verification: Ran `npm run lint`, `npm run test -- --run`, and `npm run build` to confirm changes are safe.
✨ Result: Cleaner code with a reusable component.

Co-authored-by: is0692vs <135803462+is0692vs@users.noreply.github.com>
…nt-color-550724849139148497' into fix/consolidated-prs-latest
…dling-7950621441683495241' into fix/consolidated-prs-latest
@gemini-code-assist
Copy link

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

@vercel
Copy link

vercel bot commented Mar 6, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
github-user-summary Ready Ready Preview, Comment Mar 14, 2026 2:27pm

@coderabbitai
Copy link

coderabbitai bot commented Mar 6, 2026

Warning

Rate limit exceeded

@is0692vs has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 16 minutes and 19 seconds before requesting another review.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro

Run ID: db5bb5b2-5193-4760-80bd-caef4b4b7dd1

📥 Commits

Reviewing files that changed from the base of the PR and between 328d1fb and 8bc71e7.

📒 Files selected for processing (10)
  • pr_list_latest.json
  • src/app/[username]/error.tsx
  • src/app/api/dashboard/summary/route.test.ts
  • src/app/api/og/[username]/route.tsx
  • src/components/ActivityHeatmap.tsx
  • src/components/ContributionGraph.tsx
  • src/components/HeatmapLegend.tsx
  • src/lib/__tests__/color.test.ts
  • src/lib/color.ts
  • src/lib/logger.ts
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch fix/consolidated-prs-latest
📝 Coding Plan
  • Generate coding plan for human review comments

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@is0692vs
Copy link
Contributor Author

@coderabbitai review

@coderabbitai
Copy link

coderabbitai bot commented Mar 14, 2026

✅ Actions performed

Review triggered.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

# Conflicts:
#	src/components/CardGenerator.tsx
#	src/components/ThemeController.tsx
@is0692vs is0692vs merged commit 6922ca9 into main Mar 14, 2026
6 of 7 checks passed
@is0692vs is0692vs deleted the fix/consolidated-prs-latest branch March 14, 2026 14:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant